﻿using smforj.common.model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MonitorEquipmentFrm
{
    /// <summary>
    /// 监控接口
    /// </summary>
    public interface IMonitor
    {
        /// <summary>
        ///  设置监控服务Client
        /// </summary>
        /// <param name="monitorClient">监控主界面</param> 
        void SetMonitorClient(IMonitorClient monitorClient);
        /// <summary>
        /// 设置设备信息
        /// </summary>
        /// <param name="equement">EquementInfo</param>
        void SetEquementInfo(EquementInfo equement);
        /// <summary>
        /// 获取错误信息
        /// </summary>
        /// <returns>错误信息</returns>
        String GetError(); 
        /// <summary>
        /// 获取监控消息
        /// </summary>
        /// <returns></returns>
        String GetMessage();
        /// <summary>
        /// 获取监控状态
        /// </summary>
        /// <returns>0 正常 其他异常</returns>
        int GetStatus();

        /// <summary>
        /// 启动服务
        /// </summary>
        /// <returns></returns>
        int StartServer();

        /// <summary>
        /// 关闭服务
        /// </summary>
        /// <returns></returns>
        int StopServer();

        /// <summary>
        /// 获取设备信息
        /// </summary>
        /// <returns></returns>
        EquementInfo GetEquementInfo();
    }
}
